/**
 * 
 */
package com.skood.common.service;

import java.util.List;
import java.util.Map;

import com.skood.common.ExecuteResult;
import com.skood.common.model.SearchModel;

/**
 * @author keege
 * @date 2013-12-7
 */
public interface Service<T> {
	public List<T> search(SearchModel<T> searchModel,Map<String, Object> parameters);
	public Long searchCount(SearchModel<T> searchModel,Map<String, Object> parameters);
	
	public List<T> search(SearchModel<T> searchModel);
	public Long searchCount(SearchModel<T> searchModel);

	/**
	 * 删除
	 * @param ids
	 */
	public ExecuteResult<T> doDelete(Long[] ids);
}
